﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bridge
{
    public class BridgeClass
    {
    }

    public abstract class Tank
    {
        public string TankType { get; set; }
        public abstract void Short();
        public abstract void Run();
        public abstract void Stop();
    }


    public class T50 : Tank
    {
        public T50()
        {
            this.TankType = "T50";
        }
        public override void Run()
        {
            Console.WriteLine(this.TankType + " Run");
        }

        public override void Short()
        {
            Console.WriteLine(this.TankType + " Short");
        }

        public override void Stop()
        {
            Console.WriteLine(this.TankType + " Stop");
        }
    }

    public class T60 : Tank
    {
        public T60()
        {
            this.TankType = "T60";
        }
        public override void Run()
        {
            Console.WriteLine(this.TankType + " Run");
        }

        public override void Short()
        {
            Console.WriteLine(this.TankType + " Short");
        }

        public override void Stop()
        {
            Console.WriteLine(this.TankType + " Stop");
        }
    }

    public class PcT50 : T50
    {
        public override void Run()
        {
            base.Run();
            Output();
        }

        public override void Short()
        {
            base.Short();
            Output();
        }

        public override void Stop()
        {
            base.Stop();
            Output();
        }

        private void Output()
        {
            Console.WriteLine("pc机");
        }

    }

    public class MobileT50 : T50
    {
        public override void Run()
        {
            base.Run();
            Output();
        }

        public override void Short()
        {
            base.Short();
            Output();
        }

        public override void Stop()
        {
            base.Stop();
            Output();
        }
        private void Output()
        {
            Console.WriteLine("手机型号..");
        }
    }

}
